﻿package mortal.common.global
{
    import flash.text.*;
    import mortal.common.*;
    import mortal.common.font.*;

    public class GlobalStyle extends Object
    {
        public static const colorPutong:String = "#F8e9cc";
        public static const colorPutongUint:int = 16312780;
        public static const colorAnjin:String = "#ffc293";
        public static const colorAnjinUint:int = 16761491;
        public static const colorHui:String = "#989795";
        public static const colorHuiUint:int = 10000277;
        public static const colorLan:String = "#1bbee1";
        public static const colorLanUint:int = 1818337;
        public static const colorDanLan:String = "#BBD3F9";
        public static const colorDanLanUint:int = 12309497;
        public static const colorLv:String = "#1ccc31";
        public static const colorLvUint:int = 1887281;
        public static const colorHuang:String = "#E2CD9E";
        public static const colorHuangUint:int = 14863774;
        public static const colorHong:String = "#df2121";
        public static const colorHongUint:int = 14623009;
        public static const colorZi:String = "#d618dd";
        public static const colorZiUint:int = 14031069;
        public static const colorChen:String = "#fd992f";
        public static const colorChenUint:int = 16619823;
        public static const colorBai:String = "#f8eacd";
        public static const colorBaiUint:int = 16313037;
        public static const colorYin:String = "#F1DE42";
        public static const colorYinUint:uint = 15851074;
        public static const colorFenHong:String = "#F701FC";
        public static const colorFenHongUint:int = 16187900;
        public static const colorHuang2:String = "#FAD200";
        public static const colorHuang2Uint:int = 16437760;
        private static var _textFormatPutong:GTextFormat;
        private static var _textFormatAnjin:GTextFormat;
        private static var _textFormatAnHuan:GTextFormat;
        private static var _textFormatHui:GTextFormat;
        private static var _textFormatLan:GTextFormat;
        private static var _textFormatDanLan:GTextFormat;
        private static var _textFormatLv:GTextFormat;
        private static var _textFormatHuang:GTextFormat;
        private static var _textFormatHuang2:GTextFormat;
        private static var _textFormatHong:GTextFormat;
        private static var _textFormatFenHong:GTextFormat;
        private static var _textFormatZi:GTextFormat;
        private static var _textFormatChen:GTextFormat;
        private static var _textFormatShenHong:GTextFormat;
        private static var _textFormatDangChen:GTextFormat;
        private static var _textFormatBai:GTextFormat;
        private static var _txtFormatYin:GTextFormat;
        private static var _textFormatJiang:GTextFormat;
        private static var _textFormatYellow:GTextFormat;
        public static var colorItemGray:String = "#8C8C8C";
        private static var _textFormatItemGray:GTextFormat;
        private static var _textFormatItemWhite:GTextFormat;
        private static var _textFormatItemGreen:GTextFormat;
        private static var _textFormatItemBlue:GTextFormat;
        private static var _textFormatItemPurple:GTextFormat;
        private static var _textFormatItemOrange:GTextFormat;
        private static var _textFormatItemRed:GTextFormat;
        private static var _windowTitle:GTextFormat;
        private static var _windowTitle2:GTextFormat;
        private static var _embedNumberTf:GTextFormat;
        public static const career_1:String = "#fff000";
        public static const career_2:String = "#00f0ff";
        public static const career_4:String = "#FF7902";
        public static const career_8:String = "#ff04fc";

        public function GlobalStyle()
        {
            return;
        }// end function

        public static function get textFormatPutong() : GTextFormat
        {
            if (!_textFormatPutong)
            {
                _textFormatPutong = new GTextFormat(FontUtil.defaultName, 12, 16312780, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatPutong.clone();
        }// end function

        public static function get textFormatAnjin() : GTextFormat
        {
            if (!_textFormatAnjin)
            {
                _textFormatAnjin = new GTextFormat(FontUtil.defaultName, 12, 16761491, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatAnjin.clone();
        }// end function

        public static function get textFormatAnHuan() : GTextFormat
        {
            if (!_textFormatAnHuan)
            {
                _textFormatAnHuan = new GTextFormat(FontUtil.defaultName, 12, 16313037, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatAnHuan.clone();
        }// end function

        public static function get textFormatHui() : GTextFormat
        {
            if (!_textFormatHui)
            {
                _textFormatHui = new GTextFormat(FontUtil.defaultName, 12, 10788497, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatHui.clone();
        }// end function

        public static function get textFormatlan() : GTextFormat
        {
            if (!_textFormatLan)
            {
                _textFormatLan = new GTextFormat(FontUtil.defaultName, 12, 1818337, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatLan.clone();
        }// end function

        public static function get textFormatDanLan() : GTextFormat
        {
            if (!_textFormatDanLan)
            {
                _textFormatDanLan = new GTextFormat(FontUtil.defaultName, 12, 12309497, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatDanLan.clone();
        }// end function

        public static function get textFormatLv() : GTextFormat
        {
            if (!_textFormatLv)
            {
                _textFormatLv = new GTextFormat(FontUtil.defaultName, 12, 1887281, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatLv.clone();
        }// end function

        public static function get textFormatHuang() : GTextFormat
        {
            if (!_textFormatHuang)
            {
                _textFormatHuang = new GTextFormat(FontUtil.defaultName, 12, 14863774, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatHuang.clone();
        }// end function

        public static function get textFormatHuang2() : GTextFormat
        {
            if (!_textFormatHuang2)
            {
                _textFormatHuang2 = new GTextFormat(FontUtil.defaultName, 12, 16437760, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatHuang2.clone();
        }// end function

        public static function get textFormatHong() : GTextFormat
        {
            if (!_textFormatHong)
            {
                _textFormatHong = new GTextFormat(FontUtil.defaultName, 12, 14623009, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatHong.clone();
        }// end function

        public static function get textFormatFenHong() : GTextFormat
        {
            if (!_textFormatFenHong)
            {
                _textFormatFenHong = new GTextFormat(FontUtil.defaultName, 12, 16187900, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatFenHong.clone();
        }// end function

        public static function get textFormatZi() : GTextFormat
        {
            if (!_textFormatZi)
            {
                _textFormatZi = new GTextFormat(FontUtil.defaultName, 12, 14031069, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatZi.clone();
        }// end function

        public static function get textFormatChen() : GTextFormat
        {
            if (!_textFormatChen)
            {
                _textFormatChen = new GTextFormat(FontUtil.defaultName, 12, 16619823, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatChen.clone();
        }// end function

        public static function get textFormatShenHong() : GTextFormat
        {
            if (!_textFormatShenHong)
            {
                _textFormatShenHong = new GTextFormat(FontUtil.defaultName, 12, 13369446, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatShenHong.clone();
        }// end function

        public static function get textFormatDangChen() : GTextFormat
        {
            if (!_textFormatDangChen)
            {
                _textFormatDangChen = new GTextFormat(FontUtil.defaultName, 12, 16764057, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatDangChen.clone();
        }// end function

        public static function get textFormatBai() : GTextFormat
        {
            if (!_textFormatBai)
            {
                _textFormatBai = new GTextFormat(FontUtil.defaultName, 12, 16777215, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatBai.clone();
        }// end function

        public static function get textFormatYin() : GTextFormat
        {
            if (!_txtFormatYin)
            {
                _txtFormatYin = new GTextFormat(FontUtil.defaultName, 12, 15851074, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _txtFormatYin.clone();
        }// end function

        public static function get textFormatJiang() : GTextFormat
        {
            if (!_textFormatJiang)
            {
                _textFormatJiang = new GTextFormat(FontUtil.defaultName, 12, 16761491, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatJiang.clone();
        }// end function

        public static function get textFormatYellow() : GTextFormat
        {
            if (!_textFormatYellow)
            {
                _textFormatYellow = new GTextFormat(FontUtil.defaultName, 12, 16776960, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatYellow.clone();
        }// end function

        public static function get textFormatItemGray() : GTextFormat
        {
            if (!_textFormatItemGray)
            {
                _textFormatItemGray = new GTextFormat(FontUtil.defaultName, 12, 9211020, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatItemGray.clone();
        }// end function

        public static function get textFormatItemWhite() : GTextFormat
        {
            if (!_textFormatItemWhite)
            {
                _textFormatItemWhite = new GTextFormat(FontUtil.defaultName, 12, 16777215, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatItemWhite.clone();
        }// end function

        public static function get textFormatItemGreen() : GTextFormat
        {
            if (!_textFormatItemGreen)
            {
                _textFormatItemGreen = new GTextFormat(FontUtil.defaultName, 12, 65280, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatItemGreen.clone();
        }// end function

        public static function get textFormatItemBlue() : GTextFormat
        {
            if (!_textFormatItemBlue)
            {
                _textFormatItemBlue = new GTextFormat(FontUtil.defaultName, 12, 48895, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatItemBlue.clone();
        }// end function

        public static function get textFormatItemPurple() : GTextFormat
        {
            if (!textFormatItemPurple)
            {
                _textFormatItemPurple = new GTextFormat(FontUtil.defaultName, 12, 16711935, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatItemPurple.clone();
        }// end function

        public static function get textFormatItemOrange() : GTextFormat
        {
            if (!_textFormatItemOrange)
            {
                _textFormatItemOrange = new GTextFormat(FontUtil.defaultName, 12, 16742658, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatItemOrange.clone();
        }// end function

        public static function get textFormatItemRed() : GTextFormat
        {
            if (!_textFormatItemRed)
            {
                _textFormatItemRed = new GTextFormat(FontUtil.defaultName, 12, 16735067, null, null, null, null, null, TextFormatAlign.LEFT);
            }
            return _textFormatItemRed.clone();
        }// end function

        public static function get windowTitle() : GTextFormat
        {
            var _loc_1:* = new GTextFormat("title", 14, 14274476, false, null, null, null, null, TextFormatAlign.CENTER);
            _windowTitle = new GTextFormat("title", 14, 14274476, false, null, null, null, null, TextFormatAlign.CENTER);
            return _windowTitle || _loc_1;
        }// end function

        public static function get windowTitle2() : GTextFormat
        {
            var _loc_1:* = new GTextFormat(FontUtil.defaultName, 17, 16573632, true, null, null, null, null, TextFormatAlign.CENTER);
            _windowTitle2 = new GTextFormat(FontUtil.defaultName, 17, 16573632, true, null, null, null, null, TextFormatAlign.CENTER);
            return _windowTitle2 || _loc_1;
        }// end function

        public static function get embedNumberTf() : GTextFormat
        {
            if (!_embedNumberTf)
            {
                _embedNumberTf = new GTextFormat(FontUtil.EmbedNumberName, 18, 65280, null, false, null, null, null, TextFormatAlign.CENTER);
            }
            return _embedNumberTf.clone();
        }// end function

        public static function getTextFormatDefaultFont(param1:GTextFormat) : GTextFormat
        {
            var _loc_2:* = param1.clone();
            _loc_2.font = FontUtil.defaultFont.fontName;
            return _loc_2;
        }// end function

    }
}
